<?php
abstract class XA_Data {

	public $result_resource;

	abstract public function reset();
	abstract public function getRow();
	abstract public function getRows($index = null);
	abstract public function getRowCount();
	abstract public function getValue($key);
	abstract public function getValues($key, $index = null);


	public function col($name = null, $index = null) {
		return $this->getValues($name, $index);
	}


	public function val($index = null) {
		return $this->getValue($index);
	}


	public function all($index = null) {
		return $this->getRows($index);
	}

	
	public function row() {
		return $this->getRow();
	}
}
